# coding=utf-8
#harjen
#Date:week07


goods = [
    ["10001","python课本","88"],
    ["10002","蜜雪冰城—冰茶","10"],
    ["10003","ipone13 pro","9999"],
    ["10004","华为-跑车","400000"],
    ["10005","小米手环","199"]]

user_shop_list = []




支付宝余额 = input("请输入您的余额：")
info = '''---------goods list--------
%s
%s
%s
%s
%S
'''%(goods[0],goods[1],goods[2],goods[3],goods[4])
print(info)
user_input_ID = input("请输入商品ID：")
for i in goods:
    print(good)
    # 判断商品id是否正确
    if user_input_ID == goods[0]:
        # 判断用户的余额是否够用
        if int(goods[2]) < int(支付宝余额):
          # 把商品加入list
          user_shop_list.append(good)
        # 扣除支付宝余额
        break
    else:
        print ("您输入的商品信息有问题，请输入正确的商品id")

print(user_input_ID)
